#ifndef CIPHERFACTORY_H
#define CIPHERFACTORY_H

#include <QObject>
#include "cipher.h"

class CCipherFactory : public QObject
{
    Q_OBJECT
public:
    explicit CCipherFactory(QObject *parent = nullptr);

    enum {
        CIPHER_AES = 0,
        CIPHER_DES = 1,
        CIPHER_3DES = 2,
        CIPHER_HASH = 3
    } CIPHER_TYPE;

    CCipher * buildCipher(int type);

private:
    CCipher *m_cipher;
};

#endif // CIPHERFACTORY_H
